package com.lehuowujie.lehuomarket.adapter;

import android.view.ViewGroup;
import android.widget.TextView;

import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.lehuowujie.lehuomarket.R;

/**
 * Created by 王瑞铭 on 2017/1/13.
 */
public class HomeCategoryViewHolder extends BaseViewHolder<String> {

    private TextView name;

    public HomeCategoryViewHolder(ViewGroup parent) {
        super(parent, R.layout.item_home_category_layout);
        this.name = $(R.id.name);
    }

    @Override
    public void setData(String data) {
        super.setData(data);
        this.name.setText(data);
    }
}
